import request from "../utils/request";
//http://localhost:2703/api/auth/login

// 登录api
export const loginApi = ({ username, password }) => {
  // http协议 localhost域名 2703端口号 api/auth/login请求资源地址
  return request.post("/auth/login", {
    username,
    password,
  });
};

// 退出登录
export const logoutApi = () => request.post("/auth/logout");

// 获取用户信息
export const getUserInfoApi = () => request.get("/users/profile");
